package com.jackoak.controller;

import java.util.HashMap;
import java.util.Map;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/hello")
@RestController
public class HelloController {
	
	
	@RequestMapping("/hello")
	public Map<String,Object> hello()throws Exception{
		Map<String,Object> map = new HashMap<String,Object>();
		map.put("name", "jackoak");
		map.put("text","hello spring boot");
		return map;
	}

}
